---
---
<html>
<head>
<script type="text/javascript" src="/script/utils.js" charset="UTF-8"> </script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<script type="text/javascript">
function getURLParameter(name) {
  return decodeURI(
    (RegExp(name + '=' + '(.+?)(&|$)').exec(location.search)||[,''])[1]
   );
}
function findDestination() {
  var translations, lang;
  var userLang = (getURLParameter("lang") || window.navigator.userLanguage || window.navigator.language).substring(0,2);
  if (userLang == 'zh')
    userLang = 'zh-cn';
  if (userLang == 'pt')
    userLang = 'pt-br';
  var hash = window.location.hash;
  switch (hash) {
    case "#tutorial":
    case "#tutorial_r4":
      translations = ["en","de","fr","it","es"];
      lang = translations.indexOf(userLang) > -1 ? userLang : "en";
      return "http://" + window.location.host + "/" + lang + "/tutorial_r4/introduction.html"
    case "#paypal":
      return "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=A7ZPSCUTS23K6";
    case "#changelog":
      hash = "#versionlist";
      break;
    case "#privacy":
      hash = "#imprint";
      break;
    case "#donate":
      hash = "#premium";
    break
  }
  translations = ["ar","bg","ca","cs","da","de","el","en","es","eu","fr","hr","hu","it","iw","ja","kn","ko","ms","nl","pl","pt-br","pt-pt","ro","ru","ta","te","tr","uk","vi","zh-cn","zh-tw"];
  lang = translations.indexOf(userLang) > -1 ? userLang : "en";
  return "https://" + window.location.host + "/" + lang + hash;
}
window.location.replace(findDestination());
</script>
</head>
<body>
<noscript>
<ul>
{% for title in site.title %}
    <li><a href="{{title[0]}}">{{title[1]}}</a></li>
{% endfor %}
</ul>
</noscript>
</body>


